package com.qf.xml.service.impl;

import com.qf.xml.domain.Account;
import com.qf.xml.mapper.AccountMapper;
import com.qf.xml.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public int insert(Account account) {
        return accountMapper.insert(account);
    }

    @Override
    public int delete(Integer id) {
        return accountMapper.delete(id);
    }

    @Override
    public int update(Account account) {
        return accountMapper.update(account);
    }

    @Override
    public List<Account> findAll() {
        return accountMapper.findAll();
    }

    @Override
    public Account findById(Integer id) {
        return accountMapper.findById(id);
    }
}
